//轮播图数据路由
var express = require('express');
var router = express.Router();
var { carousel } = require('../dao/index.js');

router.get('/', function (req, res, next) {
    carousel.find({}, function (err,data) {
        res.json(data[0])
    })
})

module.exports = router